<?php
/*qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 q                                                                                                q
 q                                                                                                q
 q     This file is part of Tree CMS.                                                             q
 q     Copyright (c) 2018. Tom Wippich (theman@avareborn.de)                                      q
 q                                                                                                q
 q     Tree CMS is free software: you can redistribute it and/or modify                           q
 q     it under the terms of the GNU General Public License as published by                       q
 q     the Free Software Foundation, either version 3 of the License, or                          q
 q     (at your option) any later version.                                                        q
 q                                                                                                q
 q     Tree CMS is distributed in the hope that it will be useful,                                q
 q     but WITHOUT ANY WARRANTY; without even the implied warranty of                             q
 q     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                              q
 q     GNU General Public License for more details.                                               q
 q                                                                                                q
 q     You should have received a copy of the GNU General Public License                          q
 q     along with Tree CMS.  If not, see <https://www.gnu.org/licenses/>                          q
 q                                                                                                q
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq*/

?>

<html>
<?php
if ($_SERVER['HTTPS'] == TRUE) {
    echo '<meta http-equiv="refresh" content="0; url=https://';
    echo $_SERVER['HTTP_HOST'];
    echo '" />';
} else {
    echo '<meta http-equiv="refresh" content="0; url=http://';
    echo $_SERVER['HTTP_HOST'];
    echo '" />';
}
?>

</html>